// import { Result } from '@/common/dto/result.type';
import { CommonType } from '@/common/dto/common.type';
import { createResult, createResults } from '@/common/dto/result.type';
import { Field, ObjectType } from '@nestjs/graphql'
// import { Student } from '../models/student.entity';
@ObjectType()
export class StudentType extends CommonType{
    // @Field({nullable:true})
    // id?: string;
    @Field({nullable:true})
    name?: string;
    @Field({nullable:true})
    desc?: string;
    @Field({description:'账户信息',nullable:true})
    account?: string;
    @Field({description:'tel',nullable:true})
    tel?: string;
    @Field({description:'头像',nullable:true})
    avatar?: string;
}

@ObjectType()
export class StudentResult extends createResult(StudentType) {
}

@ObjectType()
export class StudentResults extends createResults(StudentType) {}
